export default {
  install(Vue, options) {
    // 添加 $isMobile 属性到 Vue 实例中
    Vue.prototype.$isMobile = function () {
      const userAgentInfo = navigator.userAgent;
      const Agents = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"];
      let flag = false;
      for (let v = 0; v < Agents.length; v++) {
        if (userAgentInfo.indexOf(Agents[v]) > 0) {
          flag = true;
          break;
        }
      }
      return flag;
    };
  }
};